﻿import { Logger } from "../common";
export class ServiceException extends Error {
    private innerException;
    message;
    constructor(private module: any, message: string) {
        super(message);
        this.module = {
            name: "ServiceException"
        };
       new Logger().getLogger('error').error(this.module.name, this);
    }
    get Message() { return this.message; }
    get Module() { return this.module.toString(); }
    get InnerException() { return this.innerException; }
}